import math

# 平移变换
def translate(x, y, dx, dy):
    return x + dx, y + dy

# 旋转变换
def rotate(x, y, theta):
    rad = math.radians(theta)
    x_new = x * math.cos(rad) + y * math.sin(rad)
    y_new = -x * math.sin(rad) + y * math.cos(rad)
    return round(x_new, 2), round(y_new, 2)

# 对称变换
def reflect(x, y):
    return -x, -y

# 输入测试
x, y = map(float, input("请输入点的坐标 (x, y): ").split())
dx, dy = map(float, input("请输入平移量 (dx, dy): ").split())
theta = float(input("请输入旋转角度 θ: "))

# 输出结果
print("平移后的坐标:", translate(x, y, dx, dy))
print("旋转后的坐标:", rotate(x, y, theta))
print("关于原点的对称点:", reflect(x, y))